home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / CTRL_BRK.CPP < prev    next >
C/C++ Source or Header  |  1994-03-10  |  439b  |  27 lines

  1. #include "au.hpp"
  2.  
  3. /*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
  4. /* Keep this function out of the overlay section */
  5.  
  6. int control_break(void)
  7. {
  8.     int opt;
  9.  
  10.     for (;;)
  11.     {
  12.         fprintf(stderr, "Continue Y/N:");
  13.         opt = toupper(my_getch());
  14.         fprintf(stderr, "\n");
  15.         if (opt=='N')
  16.             exit(0);
  17.         if (opt=='Y')
  18.             break;
  19.     }
  20.     return 1;
  21. }
  22.  
  23. void set_ctrl_brk(void)
  24. {
  25.     ctrlbrk(control_break);
  26. }
  27.